<?php
require __DIR__.'/core/System.php';
ini_set('memory_limit', '512M');
date_default_timezone_set('Asia/Shanghai');

use Swoole\Coroutine\Http\Server;
use Swoole\Coroutine;
use function Swoole\Coroutine\run;
use app\core\Route;
use app\core\Db as mainDb;
use  app\core\DB\Test\Db;
use app\core\HttpError;
use app\core\HttpException;
use Swoole\Process;
use app\core\classLoader;
use app\core\Proxy\Main;
use app\core\Config;
use app\core\System;
Swoole\Runtime::enableCoroutine($flags = SWOOLE_HOOK_ALL);

(new System())->run();
